@import url("MainStyle.css");
@import url("danhsach.css");
@import url("owl.carousel.min.css");
@import url("owl.theme.default.min.css");
@import url("sweetalert2.min.css");
@import url("view-invoice.css");

/* Ẩn icon search trong header */
.nav-item.search {
    display: none !important;
}

/* Menu mobile improvements */
.contentMenuMobile {
    display: none;
    background: #fff;
    width: 320px;
    position: fixed;
    right: 0;
    top: 60px;
    padding-bottom: 10px;
    z-index: 900; /* lowered below modal */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contentMenuMobile.show {
    display: block !important;
}

.submenuMB {
    display: none;
    padding: 0 15px;
}

.submenuMB.show {
    display: block !important;
}

.btnShowSubmenu {
    cursor: pointer;
    width: 25px;
    height: 25px;
    background: #dfdfdf;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    position: absolute;
    top: 7px;
    right: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.btnShowSubmenu:hover {
    background-color: #ccc;
}

.btnShowSubmenu.active {
    background-color: #e67e22;
    color: white;
}

/* Mobile menu transitions */
.contentMenuMobile,
.submenuMB {
    transition: all 0.3s ease;
}

/* Style cho nút toggle submenu */
.btnShowSubmenu:hover {
    background-color: #ccc;
}

/* ---- Header layout adjustments ---- */
#header > .container {
    align-items: center; /* Vertically align items in header */
    z-index: 10; /* ensure header is below modal */
    position: relative;
}

#header > .container > .logo img {
    height: 40px; /* Adjust logo height */
    width: auto !important;
    margin-bottom: 8px !important; /* Space between logo and text below */
}

#header > .container > .logo span {
    font-size: 12px;
    line-height: 1;
    color: #000;
    white-space: nowrap; /* Prevent text from wrapping */
}

#header > .container > .logo > .description.logo-des {
    display: none; /* Hide the long description */
}

@media (max-width: 1199.8px) {
    #header > .container > .logo {
        width: auto !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        padding-left: 8px !important; /* slight indent to avoid clipping */
    }
    #header > .container > .logo img {
        height: 34px !important; /* Smaller logo on mobile */
        margin-bottom: 8px !important;
        margin-top: 0 !important;
        width: auto !important;
    }
    #header > .container > .logo span {
        font-size: 11px !important;
        display: block !important; /* Stack text below logo */
        margin-top: 0 !important;
        text-align: left !important;
        white-space: normal !important; /* allow wrapping on very small screens */
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}